package com.xf.sys.entity;

import java.util.ArrayList;
import java.util.List;

public class TreeNode implements java.io.Serializable
{

	private static final long serialVersionUID = 7167292131071749703L;

	private String id;
	private String pid;
	private String name;
	private String icon;
	private Boolean checked = Boolean.FALSE;
	private List<TreeNode> children = new ArrayList<TreeNode>();
	private String state = "open";// open,closed

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getPid()
	{
		return pid;
	}

	public void setPid(String pid)
	{
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getChecked()
	{
		return checked;
	}

	public void setChecked(Boolean checked)
	{
		this.checked = checked;
	}

	public List<TreeNode> getChildren()
	{
		return children;
	}

	public void setChildren(List<TreeNode> children)
	{
		this.children = children;
	}

	public String getState()
	{
		return state;
	}

	public void setState(String state)
	{
		this.state = state;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}
	
}
